package org.fight.landowner.remoting;

import org.fight.landowner.remoting.exception.RemotingServiceStatusException;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author wangxuehao02
 * @Date 2024/2/1 8:31 PM
 * @Description
 **/
public abstract class AbstractRemotingService implements RemotingService {
    /**
     * 状态：
     * init 初始化 1
     * run 运行 2
     * shutdown 结束运行 3
     *
     * init -> run
     * run -> shutdown
     * init -> shutdown
     */
    protected AtomicInteger status = new AtomicInteger(RemotingServiceStatus.INIT.getCode());

}
